
import {getDictionaryList} from '../../views/formManager/pageComponents/formPlugins/service'

export const testApi = () => {}
export const getDictionaryData = (typeId) => {
  return new Promise((resolve, reject) => {
    getDictionaryList(typeId).then(res => {
      resolve(res.map(item => {
        return {
          value: item.dataDicId,
          label: item.dataDicName
        }
      }))
    })

  })
}